
package org.dyndns.cooland.updater.db.model;

import java.io.Serializable;

public class Sites implements Serializable, Bean {
	
	private static final long	serialVersionUID	= -7818069495011806013L;
	
	int							id;
	String						name;
	String						url;
	String						description;
	int							enabled;
	
	public Sites () {

	}
	
	public Sites (String name, String url, String description, int enabled) {

		this.name = name;
		this.url = url;
		this.description = description;
		this.enabled = enabled;
	}
	
	public int getId() {

		return id;
	}
	
	public void setId(int id) {

		this.id = id;
	}
	
	public String getName() {

		return name;
	}
	
	public void setName(String name) {

		this.name = name;
	}
	
	public String getUrl() {

		return url;
	}
	
	public void setUrl(String url) {

		this.url = url;
	}
	
	public String getDescription() {

		return description;
	}
	
	public void setDescription(String description) {

		this.description = description;
	}
	
	public int getEnabled() {

		return enabled;
	}
	
	public void setEnabled(int enabled) {

		this.enabled = enabled;
	}
	
	// for display objects in JComboBox uses toString method
	public String toString() {

		return this.name + " - (" + this.url + ")";
	}
	
}
